package com.atguigu.jxc.controller;

import com.atguigu.jxc.service.GoodsUnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * ClassName: GoodsUnitController
 * Package: com.atguigu.jxc.controller
 * Description:
 *
 * @Author 梅超凡
 * @Create 2025/2/21 18:53
 * @Version 1.0
 */
@RestController
@RequestMapping("/unit")
public class GoodsUnitController {

    @Autowired
    private GoodsUnitService goodsUnitService;



    @PostMapping("/list")
    public Map<String, Object> getUnitList(){
        return goodsUnitService.getUnitList();
    }
}
